#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.60)
AC_INIT(libeds, 0.01.devel, just.asgard@gmail.com)
AC_CONFIG_SRCDIR(src)
AC_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(-Wall -Werror foreign)

# Checks for programs.
AC_PROG_CC
AC_PROG_MAKE_SET
AC_PROG_RANLIB

# Checks for libraries.

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(stdlib.h string.h pthread.h stdio.h errno.h stdint.h pthread.hxf)

# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T

AC_MSG_CHECKING(whether enable debug)
AC_ARG_ENABLE(debug,
	AC_HELP_STRING([--enable-debug], [enable debugging(default=no)]),
	[enable_debug=$enableval],
	[enable_debug="no"])
AC_MSG_RESULT($enable_debug)
AM_CONDITIONAL(LIBDS_DEBUG, test "$enable_debug" = "yes")

# Checks for library functions.

AC_CONFIG_FILES(Makefile
                 src/Makefile
                 src/trees/Makefile
		 src/test/Makefile
		 src/test/tree/Makefile)
AC_OUTPUT
